package com.springboot.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class WebUtils {
    //定义一个文件上传路径
    public static String UPLOAD_FILE_DIRECTORY="static/images/upload/";
    //编写方法生成目录
    public static String getUploadFileDirectory(){
        return UPLOAD_FILE_DIRECTORY+new SimpleDateFormat("yy/MM/dd").format(new Date());
    }
//    //测试
//    public static void main(String[] args) {
//        System.out.println(WebUtils.getUploadFileDirectory());
//    }
}
